from django.db import models

# Create your models here.
# #部门类型模型
# class DepartmentType(models.Model):
#     name=models.CharField(max_length=30,verbose_name='部门分类名称')
#     class Meta:
#         db_table='department_type'

#员工部门模型
class Department(models.Model):
    name=models.CharField(max_length=10,verbose_name='部门名称',unique=True)
    type=models.IntegerField(verbose_name='部门分类')
    is_gaozhi=models.IntegerField(verbose_name="是否是高职学院（0：不是，1：是）",null=True)
    def __str__(self):
        return self.name
    class Meta:
        db_table='department'
        ordering=('-id',)

